﻿This archive contains the materials necessary to reproduce all results reported in:


Brew, Brian. "Teaching Electoral Institutions Using In-Class Simulations." PS: Political Science and Politics. 2024.


Archive contents:


1. POLI 208 Spring 2024 Simulation Pre-Post Test Response Scores, Anonymized.csv (Archived as .tab) – scores on pre- and post-test conducted for the simulation exercise in the Spring 2024 semester
2. POLI 208 Spring 2024 Simulation Survey_March 27, 2024_09.26.csv (Archived as .tab) – multiple-option and open-ended responses to a survey item pertaining to the simulation exercise in the Spring 2024 semester (no quantitative analysis)
3. POLI 208 Spring 2023 Exam Grade Summary, Anonymized.csv (Archived as .tab) – a summary of exam scores, including those pertaining to the simulation’s subject matter, in the Spring 2023 semester
4. POLI 208 Spring 2024 Exam Grade Summary, Anonymized.csv (Archived as .tab) – a summary of exam scores, including those pertaining to the simulation’s subject matter, in the Spring 2024 semester
5. teaching_electoral_institutions.R – R script which reproduces quantitative results


Additional R packages required to replicate results:


dplyr, tidyr


Instructions to replicate results:


1. Download all files listed above in their original format.
2. Make sure the working directory in teaching_electoral_institutions.R is set to the location where all files listed above are saved.
3. Download any additional packages, if needed.
4. Run teaching_electoral_institutions.R.


Note that initial coding was done in Microsoft Excel. The code has been removed from the datasets uploaded here to facilitate the R coding process. 


For any interested parties – the Excel code used the =AVERAGE(), =MEDIAN(), and =SUM() formulas on appropriate columns to generate the values replicated in the R script. This can be done with minor modifications to the CSV files uploaded here.